package com.zhhs.jzcd.material.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhhs.framework.aspectj.lang.annotation.Excel;
import com.zhhs.framework.web.domain.BaseEntity;

/**
 * 素材库对象 base_material
 *
 * @author ruoyi
 * @date 2023-08-03
 */
public class BaseMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 文本内容 */
    @Excel(name = "文本内容")
    private String content;

    /** 素材名称 */
    @Excel(name = "素材名称")
    private String picName;

    /** 素材地址 */
    @Excel(name = "素材地址")
    private String materialUrl;

    /** 是否精选1是2否 */
    @Excel(name = "是否精选1是2否")
    private String ifChoice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setPicName(String picName)
    {
        this.picName = picName;
    }

    public String getPicName()
    {
        return picName;
    }
    public void setMaterialUrl(String materialUrl)
    {
        this.materialUrl = materialUrl;
    }

    public String getMaterialUrl()
    {
        return materialUrl;
    }
    public void setIfChoice(String ifChoice)
    {
        this.ifChoice = ifChoice;
    }

    public String getIfChoice()
    {
        return ifChoice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("content", getContent())
            .append("picName", getPicName())
            .append("materialUrl", getMaterialUrl())
            .append("ifChoice", getIfChoice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
